package com.zhentao.controller;


import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ICdzGoodsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 兑换商品表 前端控制器
 * </p>
 *
 * @author mp
 * @since 2025-01-05
 */
@RestController
@RequestMapping("/user")
public class CdzGoodsController {

    @Resource
    private ICdzGoodsService cdzGoodsService;

    @GetMapping("/goodsList")
    public ResponseResult list() {
        return ResponseResult.okResult(cdzGoodsService.list());
    }


}

